<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>设置</title>
<include file="Public/header" />
<script type="text/javascript" src="__PUBLIC__/Js/jquery.validate.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/myup.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/ajaxupload.3.6.js"></script>

<script type="text/javascript">
    var ajaxUrl='<{:U("logo_up")}>';
</script>
<script type="text/javascript" src="__PUBLIC__/Js/ajaxup.js"></script>
<script type="text/javascript">
$(function(){
    $("#myform").validate({
        rules: {
                 
                store_name : {
                    required: true,
                },
                store_domain : {
                    required: true,

                },
            
        },
        messages: {
                 
			    
	 
                store_name : {
                    required: '请输入商店名！',
                },
                store_domain : {
                    required : '请输入商店域名！'
                }

       },
    })
})

</script>
</head>


<body>
<div>
   
   
        <div class="list_vmall_man">
        	<div class="list_vmall_le">
        
             <include file="./Apps/BoxAdmin/View/Public/adminMenu.html" />
            </div>
            <div class="list_vmall_rig">
            	<ul class="breadcrumb">
                    <li><a href="<{:U('index')}>">系统管理</a> </li>
                    <li class="active">基本设置</li>
                </ul>
                <div class="list_vmall_bort">
                    <form id="myform" enctype="multipart/form-data" method="post" action="<{:U('dict')}>">
                       
                    	<div class="vmall_padi">
     

          
                            
                          
                             

                             <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le" >订单自动取消时间</label>
                                <div class="vmaal_rols">
                            
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod"  name="setting[autoCancelOrder]"  value="<{$setting.autoCancelOrder}>"> 小时后
                                
                                </div>
                            </div>
							
							<div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le" >代理优惠码抵</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod"  name="setting[agent_money]"  value="<{$setting.agent_money}>"> 元
                                
                                </div>
                            </div>
							
								<div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le" >校友优惠码抵</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod"  name="setting[school_money]"  value="<{$setting.school_money}>"> 元
                                
                                </div>
                            </div>
							
							<div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le" >校友优惠码赚</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod"  name="setting[school_money_inc]"  value="<{$setting.school_money_inc}>"> 元
                                
                                </div>
                            </div>
							<div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le" >代理优惠码赚</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod"  name="setting[agent_money_inc]"  value="<{$setting.agent_money_inc}>"> 元
                                
                                </div>
                            </div>
							 
							 
							    <div class="vmall_cle">
                            <label for="input-title" class="vmall_te_le">答题次数</label>
                            <div class="vmaal_rols" style="margin-top:7px;">
                            <input type="button"  style="height:29px; margin: -6px 0 5px 0px;" value="添加" onclick="add_cs(this)" class="btn j_img_clear delgoods_spec">
                            <div id="cs">

                               <if condition="$setting['Cardtime']">
                                   <volist name="setting['Cardtime']" id="vo">
                                       <div class="canshu"><input type="text" style="width:120px;" class="vmaal_sinw1 input_a1 int_wod" value="<{$vo.l}>" name="setting[Cardtime][<{$key}>][l]">&nbsp;&nbsp;：&nbsp;&nbsp;<input type="text" style="width:120px;" class="vmaal_sinw1 input_a1 int_wod" value="<{$vo.r}>" name="setting[Cardtime][<{$key}>][r]">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button"  style="height:29px;margin: 5px 0 5px 10px;" value="删除" onclick="del_cs(this)" class="btn j_img_clear delgoods_spec"></div>

                                   </volist>
                               </if>
                                
                            </div>    
                                

                            </div>
                        </div>
							 
                             
							
    
                            <div class="vmall_cle">
                                <div class="vmaal_rols">
                                    <button class="v_mall_q_1" style="border:0; height:32px; padding-top:0; cursor:pointer;" type="submit">确&nbsp;&nbsp;定</button>
                                </div>
                            </div>

                         </div>
                     </form> 
					  
                </div>
                
            </div>
            
            
         
        </div>
        
 
    
    
    
  
</div>

<script>
var canshu=$(".canshu").length;
 function add_cs(o){
 canshu++;
         $('<div class="canshu"><input placeholder="次数" type="text" style="width:120px;" class="vmaal_sinw1 input_a1 int_wod"  name="setting[Cardtime]['+canshu+'][l]">&nbsp;&nbsp;：&nbsp;&nbsp;<input type="text" style="width:120px;" class="vmaal_sinw1 input_a1 int_wod" placeholder="金额" name="setting[Cardtime]['+canshu+'][r]">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button"  style="height:29px;margin: 5px 0 5px 10px;" value="删除" onclick="del_cs(this)" class="btn j_img_clear delgoods_spec"></div>').appendTo($("#cs"));
     }
     function del_cs(o){
	  canshu--;
        $(o).parents('.canshu').remove();
     }
</script>

</body>
</html>
